From: Ian Campbell Date: Wed, 25 Oct 2006 12:58:30 +0000 (+0100) Subject: [LINUX] PV-on-HVM: Only initialize the owner field of struct X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15584^2~22 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=27e0aaa9a7697c01a4e399c9b1c907c8e314ba68;p=xen.git [LINUX] PV-on-HVM: Only initialize the owner field of struct device_driver on kernels from 2.6.10 onward. The field was not available until then. Signed-off-by: Ian Campbell Signed-off-by: K. Y. Srinivasan Signed-off-by: Tsunehisa Doi --- diff --git a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c index 987cdfcd11..287e316d14 100644 --- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c +++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c @@ -331,7 +331,9 @@ int xenbus_register_driver_common(struct xenbus_driver *drv, drv->driver.name = drv->name; drv->driver.bus = &bus->bus; +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,10) drv->driver.owner = drv->owner; +#endif mutex_lock(&xenwatch_mutex); ret = driver_register(&drv->driver);